package org.xiji.single;

/**
 * 单例模式，线程不安全
 */
public class SingleLazyUnSafe {

    private static SingleLazyUnSafe instance;

    /**
     * 获取实例
     */
    public static SingleLazyUnSafe getInstance(){
        //如果 实例为空，则创建实例
        if (instance == null) {
            return new SingleLazyUnSafe();
        }
        //实例不为空，返回实例
        return instance;
    }
}
